package com.haoxin.ai_course.modules.course.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.haoxin.ai_course.common.annotation.SysLog;
import com.haoxin.ai_course.common.base.AbstractController;
import com.haoxin.ai_course.common.utils.HttpJsonResult;
import com.haoxin.ai_course.common.utils.R;
import com.haoxin.ai_course.modules.course.biz.AcCourseBusiness;
import com.haoxin.ai_course.modules.course.entity.AcCourse;
import com.haoxin.ai_course.modules.course.entity.VO.AcCourseVO;
import com.haoxin.ai_course.modules.course.service.AcCourseService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;



/**
 * 课程表
 * 
 * @author xingxiangguo
 * @email bugcn@qq.com
 * @date 2022-06-06 09:44:48
 */
@RestController
@AllArgsConstructor
@RequestMapping("/app/course/accourse")
@Api(value="api",tags="app小程序-课程管理")
public class AcCourseController  extends AbstractController {
    private final  AcCourseService acCourseService;
    @Autowired
    AcCourseBusiness acCourseBusiness;
    /**
     * 全部列表
     */
    @GetMapping("/fullList")
    @ApiOperation("全部课程列表")
    public HttpJsonResult<List<AcCourseVO>> fullList(){
    	//查询列表数据
    	HttpJsonResult<List<AcCourseVO>>  result = new HttpJsonResult<List<AcCourseVO>> ();
    	try {
			result = acCourseBusiness.fullList();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    	return result;
    }

}
